<div class="span-19">
                <div id="content">

                    <h1>Create Vehicle</h1>


                    <div class="form">
                        <?php if (isset($error)): ?>
                            <div class="flash-error">
                                <ul>
                                    <?php echo $error; ?>
                                </ul>
                            </div>
                        <?php endif; ?>
                        <form id="vehicle-form" action="<?php echo base_url('vehicle/index'); ?>" method="post">
                            <p class="note">Fields with <span class="required">*</span> are required.</p>


                            <div class="row">
                                <label for="Vehicle_name" class="required">Name <span class="required">*</span></label>		<input size="30" maxlength="30" name="Vehicle[name]" id="Vehicle_name" type="text" value="<?php echo $name; ?>">			</div>

                            <div class="row">
                                <label for="Vehicle_capacity" class="required">Capacity <span class="required">*</span></label>		<input name="Vehicle[capacity]" id="Vehicle_capacity" type="text" value="<?php echo $capacity; ?>">			</div>

                            <div class="row">
                                <label for="Vehicle_type">Type</label>		<select name="Line[type]" id="Line_type">
                                    <?php                                    
                                        $typearr = array('Tram', 'Autobus', 'Nightliner', 'Reginalbus');
                                        for ($i=0;$i<=3; $i++) {
                                            if ($typearr[$i] == $type) {
                                                printf('<option value="%s" selected="selected">%s</option>', $typearr[$i], $typearr[$i]);
                                            } else {
                                                printf('<option value="%s">%s</option>', $typearr[$i], $typearr[$i]);
                                            }
                                        }
                                    ?>
                                </select> 			</div>

                            <div class="row buttons">
                                <input type="submit" name="yt0" value="Create">	</div>

                        </form>
                    </div><!-- form -->	</div>
                <!-- content -->



            </div>
            <div class="span-5 last">
                <div id="sidebar">
                    <div class="portlet" >
                        <div class="portlet-decoration">
                            <div class="portlet-title">Operations</div>
                        </div>
                        <div class="portlet-content">
                            <ul class="operations" >
                                <li><a href="<?php echo base_url('vehicle/display'); ?>">List Vehicle</a></li>
                                <li><a href="<?php echo base_url('vehicle/manage'); ?>">Manage Vehicle</a></li>
                            </ul></div>
                    </div>	</div><!-- sidebar -->
            </div>
